package org.example.domain;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;

@ApiModel(description = "秒杀订单")
@Data
@TableName("seckill_order")
public class SeckillOrder {
    @TableId(value = "order_id", type = IdType.AUTO)
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    @TableField("activity_id")
    @ApiModelProperty(value = "活动ID")
    private Long activityId;

    @TableField("prod_id")
    @ApiModelProperty(value = "商品ID")
    private Long prodId;

    @TableField("open_id")
    @ApiModelProperty(value = "用户openid")
    private String openId;

    @TableField("order_number")
    @ApiModelProperty(value = "订单编号")
    private String orderNumber;

    @TableField("status")
    @ApiModelProperty(value = "状态：1-待支付 2-已支付 3-已取消")
    private Integer status;

    @TableField("create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField("update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
